@mitu Thanks to another thread of yours I have found the solution.
https://retropie.org.uk/forum/topic/17492/retropie-4-4-and-tronsmart-mars-g02-with-wireless-dongle-problem
The issue was that the controller by default comes recognized as a X mode (Xbox), I had to change it to D-mode (Android) by pressing 5 seconds the button home. After that joydev inmediately recognized it as Sharwan model.
Once again, thaks a lot for your help.